<template>
  <div>

    <h4 @click="out_login">退出登录</h4>
  </div>
</template>

<script>
export default {
  name: 'Personal',
  data(){
  	return{
  		personal:{}
  	}
  },
  created(){
  	this.personal = this.$route.params;
  	console.log(this.personal)
  },
  methods:{
    out_login(){
      this.$axios.get("https://test.8boluo.com/index.php/index/wxapp.login/quitweb",this.personal.uid).then(res=>{
        console.log(res)
        if(res.data.code == 0){
			        	 this.$store.commit("OUT_LOGIN","");
			  }
      })
      
    }
  }
}
</script>

<style>
h4{
  margin-top:100px;
  cursor: pointer;
}
</style>
